package com.sj.service.impl;

import com.sj.domain.Recommender;
import com.sj.repository.RecommenderRepository;
import com.sj.service.RecommenderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @Author: zwz
 * @Date: 2018/02/03 16:18
 */
@Service
public class RecommenderServiceImpl extends GenericServiceImpl<Recommender, Long> implements RecommenderService {

    @Autowired
    private RecommenderRepository recommenderRepository;

    @Override
    public JpaRepository<Recommender, Long> getRepository() {
        return recommenderRepository;
    }

    @Override
    public Recommender findByRecommenderIdStr(String recommenderIdStr) {
        return recommenderRepository.findByRecommenderIdStr(recommenderIdStr);
    }
}
